home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / os2 / com0914.zip / COMINST.CMD < prev    next >
OS/2 REXX Batch file  |  1992-08-12  |  1KB  |  43 lines

  1. @echo off
  2. rem ****************************************************
  3. rem *** Simple Installation utility for beta drivers ***
  4. rem ****************************************************
  5.  
  6.  
  7. if "%1"=="" goto ERROR1
  8. if not exist %1\os2\com.sys goto ERROR2
  9. if not exist comm.drv goto ERROR3
  10.  
  11. :DOIT
  12. rename %1\os2\com.sys *.392
  13. rename %1\os2\mode.com *.392
  14. rename %1\os2\mdos\vcom.sys *.392
  15. rename %1\os2\mdos\winos2\system\comm.drv *.392
  16.  
  17. copy com.sys %1\os2\com.sys
  18. copy mode.com %1\os2\mode.com
  19. copy vcom.sys  %1\os2\mdos\vcom.sys
  20. copy comm.drv  %1\os2\mdos\winos2\system\comm.drv 
  21.  
  22. goto DONE
  23.  
  24. :ERROR1
  25. echo **** YOU MUST SUPPLY THE OS/2 DRIVE (I.E.  C:) ****
  26. goto DONE
  27.  
  28. :ERROR2
  29. if %2==99 goto DOIT
  30. echo **** COM.SYS not found...Did you supply the correct Drive? ****
  31. echo **** If you wish to Override, execute COMINST x: 99 where  ****
  32. echo **** x: is the correct drive letter                        ****
  33. goto DONE
  34.  
  35. :ERROR3
  36. echo **** This is not the correct BETA Driver Floppy ****
  37. echo **** You must be at the floppy prompt (i.e A:)  ****
  38. echo **** for this to work correctly!!               ****
  39. goto DONE
  40.  
  41. :DONE
  42. echo on
  43.